package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
@Autowired
private UserDao userDao;

    @Override
    public List<User> selectAll() {
        return userDao.selectAll();
    }

    @Override
    public int updateTel(String tel,int id) {
        return userDao.updateTel(tel,id);
    }

    @Override
    public int upEmail(String email, int id) {
        return userDao.upEmail(email,id);
    }


    @Override
    public User selectOne(String tel,String password) {
        return userDao.selectOne(tel,password);
    }
}
